
<%- page.editHeaderHtml%>
<form id="edit<%= page.c_modulename%>Form" action="/cmpage/page/save" data-toggle="validate" data-alertmsg="true">
<div class="bjui-pageContent">
        <input id="<%= page.c_modulename%>ID" name="id" type="hidden" value="<%= page.editID%>" />
        <input name="modulename" type="hidden" value="<%= page.c_modulename%>" />
        <input name="parmsUrl" type="hidden" value="<%= page.parmsUrl%>" />
        <table class="table table-condensed table-hover" width="100%">
            <tbody>
            <%- editHtml%>
            </tbody>
        </table>
</div>
<div class="bjui-pageFooter" >
    <ul>
        <% if(page.editCloseBtn){ %>
            <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
        <% }%>
        <li ><button type="submit" class="btn-green"  data-icon="save">保存</button></li>
        <!--<li class="left"><button type="button" class="btn-default" data-icon="arrow-left" onclick="return <%= page.c_modulename%>gotoEdit(@ViewBag.prevEdit);"-->
                                 <!--@(ViewBag.prevEdit > 0 ? "":"disabled")>上一条</button></li>-->
        <!--<li class="left"><button type="button" class="btn-default" data-icon="arrow-right" onclick="return <%= page.c_modulename%>gotoEdit(@ViewBag.nextEdit);"-->
                                 <!--@(ViewBag.nextEdit > 0 ? "":"disabled")>下一条</button></li>-->
    </ul>
</div>
</form>

<script type="text/javascript">
    function <%= page.c_modulename%>gotoEdit(editID){
        $.CurrentDialog.dialog('reload',{ url:"/cmpage/page/edit?modulename=<%= page.c_modulename%>&id="+ editID , type:"GET" });
    }
    
</script>